package cn.zxh.improvement.common.core.pipeline.context;

import cn.zxh.improvement.common.core.pipeline.PipelineFilterEnum;
import cn.zxh.improvement.common.core.pipeline.selector.FilterSelector;

/**
 * 事件上下文
 *
 * @author zxh
 * @since 2023-6-7 16:12:23
 */
public interface EventContext {

    /**
     * 获取业务编码
     *
     * @return 业务
     */
    PipelineFilterEnum<?> getPipelineFilterEnum();

    /**
     * 获取过滤器选择器
     *
     * @return 过滤器选择器
     */
    FilterSelector getFilterSelector();

    /**
     * 是否继续链
     *
     * @return true/false
     */
    boolean continueChain();


}
